<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            margin-left: 10px;
            padding: 0;
            width: 200px;
            height: 100px;
        }
        .container1{
            background-color: aquamarine;
            border: 10px dashed red;
            opacity: 0.8;
            color: brown;
        }
        .container2{
            border: 10px dashed rgb(255, 0, 0);
            opacity: 1;
            color: rgb(0, 0, 255);
        }
        pre{
            border: 1px solid black;
        }
    </style>
</head>
<body>
    <div class="container1">测试有名颜色</div>
    <div class="container2">测试rgb颜色</div>
    <hr>
    <h2>这是关键源码</h2>
    <pre>
        &ltstyle>
        div{
            margin-left: 10px;
            padding: 0;
            width: 200px;
            height: 100px;
        }
        .container1{
            background-color: aquamarine;
            border: 10px dashed red;
            opacity: 0.5;
            color: brown;
        }
        .container2{
            border: 10px dashed rgb(255, 0, 0);
            opacity: 1;
            color: rgb(0, 0, 255);
        }
        &lt/style>
    &ltdiv class="container1">测试有名颜色&lt/div>
    &ltdiv class="container2">测试rgb颜色&lt/div>
    </pre>
    <a href="./奖状.html">下一个</a>
</body>
</html>